C++11 Проблема копирования
Решение!
BigClass& operator=(const BigClass& other){
for(int i=0;i<BigNumber;i++){
bigArray[i] = other.bigArray[i];
}
return *this;
}
BigClass& operator=(BigClass&& other){
if(this == &other)
return *this;
delete[] bigArray;
bigArray =other.bigArray;
other.bigArray = nullptr;
return *this;
}
BigClass(const BigClass& other){
for(int i=0;i<BigNumber;i++){
bigArray[i] = other.bigArray[i];
}
}
BigClass(BigClass&& other){
delete[] bigArray;
bigArray = other.bigArray;
other.bigArray = nullptr;
}